package main

import (
	common "user_service/config"
	"user_service/initialize"
	"user_service/rpc"
)

func main() {
	app := initialize.App()

	// 指定数据库名
	db := app.Mongo.Database(common.Configs.DB.Name)
	defer app.CloseDBConnection()

	// 注册服务
	rpc.RegisterService(db)
}
